package com.jdrx.sw.sewage.dao;

import com.jdrx.sw.sewage.beans.dto.ForecastQueryDTO;
import com.jdrx.sw.sewage.beans.entity.ForecastPO;
import com.jdrx.sw.sewage.beans.vo.ForecastVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ForecastDAO {
    int deleteByPrimaryKey(Long id);

    int insert(ForecastPO record);

    ForecastPO selectByPrimaryKey(Long id);

    List<ForecastPO> selectAll();

    int updateByPrimaryKey(ForecastPO record);

    List<ForecastVO> selectForecastByPage(ForecastQueryDTO forecastQueryDTO);

    ForecastPO selectByStationIdAndMonitorType(@Param("stationId") Long stationId,
                                               @Param("monitorType") Integer monitorType,
                                               @Param("type") Integer type,
                                               @Param("dataNode") String dataNode);

    Long selsectNextAlarmId(@Param("dataNode") String dataNode);
}